package y2020.m03.d20;

public class StringCompareEmp {
    public static void main(String[] args){
        String str = "Hello World";
        String anotherString = "hello world";
        System.out.println( str.compareTo(anotherString) );
        System.out.println( str.compareToIgnoreCase(anotherString) );  //忽略大小写
        System.out.println( str.compareTo(((Object) str).toString()));
    }
}
